package com.cfk.shopmail.auth.feign;

/*
    @CreateTime 2022/1/2 19:30
    @CreateBy cfk
*/

import com.cfk.common.utils.R;
import com.cfk.shopmail.auth.vo.SocialUser;
import com.cfk.shopmail.auth.vo.UserLoginVo;
import com.cfk.shopmail.auth.vo.UserRegistVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.io.IOException;

@FeignClient("shopmail-member")
public interface MemeberFeignService {

    @PostMapping("/member/member/regist")
    R regist(@RequestBody UserRegistVo vo);

    @PostMapping("/member/member/login")
    R login(@RequestBody UserLoginVo vo);

    @PostMapping("/member/member/oauth2/login")
    public R login(@RequestBody SocialUser socialUser) throws IOException;
}
